Matthias Clasen [Mon, 24 Aug 2009 20:31:46 +0000 (16:31 -0400)]
Updates
Matthias Clasen [Mon, 24 Aug 2009 14:37:46 +0000 (10:37 -0400)]
Document GDK_NATIVE_WINDOWS
Add a section in the release notes about it and list it
in the docs with all the other environment variables.
Gil Forcada [Mon, 24 Aug 2009 18:16:29 +0000 (20:16 +0200)]
Minor fix to Catalan translation
Carles Ferrando [Mon, 24 Aug 2009 18:16:02 +0000 (20:16 +0200)]
Updated Catalan (Valencian) translation
Gil Forcada [Mon, 24 Aug 2009 18:09:26 +0000 (20:09 +0200)]
Minor fix to Catalan translation
Carles Ferrando [Mon, 24 Aug 2009 18:06:44 +0000 (20:06 +0200)]
Updated Catalan (Valencian) translation
Christian Persch [Thu, 20 Aug 2009 13:32:22 +0000 (15:32 +0200)]
Preserve errno, and always use g_strerror()
Bug #592461.
Alexander Larsson [Mon, 24 Aug 2009 13:18:10 +0000 (15:18 +0200)]
Add support for enabling only native windows
Some applications make weird assumtions on Gtk+ that do not work anymore
with the new client-side windows support. For instance SWT/Eclipse reorders
the stacking order of the X windows directly without telling gdk this,
which breaks gdk drawing as gdk now relies on knowing the stacking order
for window clipping.
This introduces a GDK_NATIVE_WINDOWS environment variable, which if set
causes Gtk+ to always use native windows. Its more compatible with
pre-csw Gtk+ behaviour if you do weird X-specific hacks, although it does
limit the size of GdkWindows to 65535x65535.
Denis Arnaud [Mon, 24 Aug 2009 10:42:14 +0000 (12:42 +0200)]
Updated breton translation
Sweta Kothari [Mon, 24 Aug 2009 09:25:18 +0000 (14:55 +0530)]
Updated Gujarati Translations
Tor Lillqvist [Mon, 24 Aug 2009 07:08:53 +0000 (10:08 +0300)]
Update README.win32
Duarte Loreto [Sun, 23 Aug 2009 22:36:39 +0000 (23:36 +0100)]
Updated Portuguese translation
Duarte Loreto [Sun, 23 Aug 2009 22:21:56 +0000 (23:21 +0100)]
Updated Portuguese translation
Jamil Ahmed [Sun, 23 Aug 2009 20:40:03 +0000 (03:40 +0700)]
Updated Bengali translation
Kristian Rietveld [Sun, 23 Aug 2009 20:01:39 +0000 (22:01 +0200)]
Remove broken logic in backwards walks in validate_visible_area()
In validate_visible_area() it was assumed that gtk_tree_path_prev()
would always return the correct path of the preceding node. This is
obviously not true. The if-clause has been removed so that we now
always use _gtk_tree_view_find_path() to get the path from the tree,
node.
Kristian Rietveld [Sun, 23 Aug 2009 19:44:58 +0000 (21:44 +0200)]
Add a scrolling test case involving creating new rows in tree stores
Based on a bug report from Miroslav Rajcic, details are in the tree view
scrolling suite source code.
Kristian Rietveld [Sun, 23 Aug 2009 19:13:38 +0000 (21:13 +0200)]
Rework naming of tests to make better use of path matching feature
Kristian Rietveld [Sun, 23 Aug 2009 19:06:29 +0000 (21:06 +0200)]
Change prefix of tree view scrolling tests into TreeView
Kristian Rietveld [Sun, 23 Aug 2009 13:29:11 +0000 (15:29 +0200)]
Clean up code in gtk_tree_store_set_n_columns()
Clean up GtkTreeStore likewise as Benjamin Otte has done for
GtkListStore in commit
3c97f037.
Kristian Rietveld [Sun, 23 Aug 2009 10:21:53 +0000 (12:21 +0200)]
Bug 528283 - Problems when using PageUp & PageDown to navigate...
Patch from Jonathan Matthew to make focus grabbing of page up/down,
home/end and left/right movements consistent with up/down.
Daniel Nylander [Sun, 23 Aug 2009 18:08:35 +0000 (20:08 +0200)]
Updated Swedish translation
Ivar Smolin [Sun, 23 Aug 2009 16:41:38 +0000 (19:41 +0300)]
Updating Estonian translation
Kristian Rietveld [Sun, 23 Aug 2009 06:59:34 +0000 (08:59 +0200)]
Bug 526149 - GtkCellRendererAccel editing conflicts with mnemonics
GtkCellRendererAccel also needs to acquire the GTK+ grab in addition to
a GDK keyboard grab. With the GDK keyboard grab, KeyPress and
KeyRelease events are delivered as usual, although we only want to
receive them for our grab widget.
Kristian Rietveld [Sat, 22 Aug 2009 21:21:44 +0000 (23:21 +0200)]
Bug 478519 - GtkTooltip segfaults on NULL gdk-display-current-tooltip
Make the tooltip code a bit more robust for a case that only occurs when
GTK+ is used from a language binding. It looks like this case appears
because the memory management / ref counting is handled differently in
some of the language bindings. Instead of asserting, we will fail
silently. Also fix a think-o in gtk_tooltip_start_delay(). Patch from
O. Andrieu.
Changwoo Ryu [Sat, 22 Aug 2009 16:32:31 +0000 (01:32 +0900)]
Update Korean translation
Theppitak Karoonboonyanan [Sat, 22 Aug 2009 16:07:00 +0000 (23:07 +0700)]
Updated Thai translation.
Alexander Shopov [Sat, 22 Aug 2009 16:04:13 +0000 (19:04 +0300)]
Updated Bulgarian translation
Jorge González [Sat, 22 Aug 2009 10:11:53 +0000 (12:11 +0200)]
Updated Spanish translation
A S Alam [Sat, 22 Aug 2009 02:04:04 +0000 (07:34 +0530)]
Updating Punjabi Translation Update
A S Alam [Sat, 22 Aug 2009 01:51:13 +0000 (07:21 +0530)]
Updating Punjabi Translation Update
A S Alam [Sat, 22 Aug 2009 01:49:38 +0000 (07:19 +0530)]
Added Punjabi (Gurmukhi) Translaiton) by A S Alam
Kjartan Maraas [Fri, 21 Aug 2009 11:41:16 +0000 (13:41 +0200)]
Added Norwegian bokmål translation.
Li Yuan [Fri, 21 Aug 2009 07:29:51 +0000 (15:29 +0800)]
Return state_set directly if there is no parent.
Bug #592403. Return state_set directly if there is no parent. Fix crash.
Matthias Clasen [Thu, 20 Aug 2009 22:06:35 +0000 (18:06 -0400)]
Silence the conversion from xatom to atom too
Shixin Zeng [Thu, 20 Aug 2009 20:57:41 +0000 (23:57 +0300)]
Deprecate also GdkFontPrivateWin32
Shixin Zeng [Thu, 20 Aug 2009 20:56:52 +0000 (23:56 +0300)]
Return value from non-void function
Shixin Zeng [Thu, 20 Aug 2009 20:55:51 +0000 (23:55 +0300)]
Use g_object_ref/unref instead of deprecated specializations
Shixin Zeng [Thu, 20 Aug 2009 20:53:57 +0000 (23:53 +0300)]
Don't use stream before it is created
Shixin Zeng [Thu, 20 Aug 2009 20:51:38 +0000 (23:51 +0300)]
Put variable definitions at start of block
Alexander Larsson [Thu, 20 Aug 2009 15:09:08 +0000 (17:09 +0200)]
More reentrancy protection for process_updates
Protect against exposes destroying windows in some more places.
Hopefully this fixes bug 589367.
Antón Méixome [Wed, 19 Aug 2009 14:26:24 +0000 (16:26 +0200)]
Updated Galician Translation
Seán de Búrca [Wed, 19 Aug 2009 12:37:36 +0000 (06:37 -0600)]
Updated Irish translation
Antón Méixome [Wed, 19 Aug 2009 11:39:19 +0000 (13:39 +0200)]
Updated Galician Translation
Leonardo Ferreira Fontenelle [Wed, 19 Aug 2009 02:15:12 +0000 (22:15 -0400)]
Updated Brazilian Portuguese translation.
Andre Klapper [Tue, 18 Aug 2009 17:24:54 +0000 (19:24 +0200)]
Add missing file.
Andre Klapper [Tue, 18 Aug 2009 17:22:38 +0000 (19:22 +0200)]
Add missing file.
Marek Kasik [Tue, 18 Aug 2009 14:05:31 +0000 (16:05 +0200)]
Use gtk-save icon for GtkPrintBackendFile
Use gtk-save icon instead of gtk-floppy for GtkPrintBackendFile.
Marek Kasik [Tue, 18 Aug 2009 11:22:23 +0000 (13:22 +0200)]
Correctly select default printer when there is more than one (CUPS)
Select a local default printer if there is one instead of a remote
default printer (specified by the "printer-type" CUPS attribute)
(#591549).
Michael Natterer [Tue, 18 Aug 2009 10:10:03 +0000 (12:10 +0200)]
Shut up warning about calling gtk_object_get_type() having no effect
Matthias Clasen [Tue, 18 Aug 2009 03:53:36 +0000 (23:53 -0400)]
Bump version
Matthias Clasen [Tue, 18 Aug 2009 03:51:50 +0000 (23:51 -0400)]
2.17.8
Matthias Clasen [Tue, 18 Aug 2009 02:19:24 +0000 (22:19 -0400)]
Updates
Javier Jardón [Mon, 17 Aug 2009 15:55:09 +0000 (17:55 +0200)]
Support silent build rules with automake 1.11 (GnomeBug:591998)
Support silent build rules, requires at least automake-1.11.
Enable by either passing --enable-silent-rules to configure or
passing V=0 to make.
Matthias Clasen [Mon, 17 Aug 2009 17:38:06 +0000 (13:38 -0400)]
Handle accelerators involving virtual modifiers better
The previous code would trigger on an unmodified 'S' key for a
'Super+S' accel. The current code avoids that at the cost of breaking
combinations like 'Mod4+Super+S' which are too exotic to worry about...
Bug 591526
Matthias Clasen [Mon, 17 Aug 2009 13:16:12 +0000 (09:16 -0400)]
Tiny docs improvement
Mention that gdk_xid_table_lookup may return NULL. Bug 591432.
Paolo Borelli [Mon, 17 Aug 2009 15:04:30 +0000 (17:04 +0200)]
Bug 592003 - Shift+click should always modify selection
Shift-click inside an existing selection reduces the selection to the
range from the insert mark to the clicked point instead of removing the
selection. This makes GtkTextView more consistent with GtkEntry.
Alexander Larsson [Mon, 17 Aug 2009 14:59:47 +0000 (16:59 +0200)]
Don't crash on NULL parent
The parent window can be NULL, check for that before dereferencing.
Seán de Búrca [Mon, 17 Aug 2009 09:17:30 +0000 (03:17 -0600)]
Updated Irish translation
Alexander Larsson [Sun, 16 Aug 2009 20:32:58 +0000 (22:32 +0200)]
Remove unused variable
Alexander Larsson [Sun, 16 Aug 2009 20:24:00 +0000 (22:24 +0200)]
Fix gdk_window_get_geometry for native children with non-native parent
gdk_window_get_geometry calls the native function for all non-native
windows. This returns coords relative to the native parent. We need
to convert this to be relative to the client side parent.
This fixes DnD coordinates in firefox (bug 588437).
Paolo Borelli [Fri, 14 Aug 2009 09:33:47 +0000 (11:33 +0200)]
Fix memory leaks when using add_objects
Paolo Borelli [Thu, 13 Aug 2009 22:09:46 +0000 (00:09 +0200)]
Fix memory leaks in unit tests
Paolo Borelli [Thu, 13 Aug 2009 22:08:09 +0000 (00:08 +0200)]
Fix duplicated id detection in gtkbuilder
Fix memory handling of duplicated id hashtable and add unit test
Alexander Larsson [Fri, 14 Aug 2009 10:09:02 +0000 (12:09 +0200)]
Always queue antiexposes after flushing outstanding moves
If antiexposures are queued and then we do the outstanding moves
we will queue translations that will affect incomming exposes
wrongly wrt the antiexposure. So, make sure we process the outstanding
moves before doing the antiexposure.
Additionally this commit adds a bunch of comments about how the
expose handling works and fixes a small bug that made us always
flush outstanding moves a little to early than necessary.
Alexander Larsson [Fri, 14 Aug 2009 09:20:12 +0000 (11:20 +0200)]
Fix type mismatch warnings
Cast g_list_foreach args to GFunc.
Tor Lillqvist [Thu, 13 Aug 2009 19:49:35 +0000 (22:49 +0300)]
Initialize missing methods on Windows
Set the input_window_destroy and input_window_crossing methods of the
GdkWindowImplIface on Windows. Add implementation of
_gdk_input_crossing_event that is mostly dummy, though.
Cody Russell [Thu, 13 Aug 2009 16:22:57 +0000 (11:22 -0500)]
Add gtk_widget_set_allocation to gtkwidget.h and gtk.symbols
Cody Russell [Thu, 13 Aug 2009 16:21:15 +0000 (11:21 -0500)]
Make the allocation parameter const
Cody Russell [Thu, 13 Aug 2009 14:57:25 +0000 (09:57 -0500)]
Add widget->allocation setter method
Add gtk_widget_set_allocation() to be used by size_allocate() methods,
since widget->allocation is now sealed. Bug #585211
Alexander Larsson [Thu, 13 Aug 2009 15:00:00 +0000 (17:00 +0200)]
Make _gdk_window_process_updates_recurse reentrancy safe
Apps may change the window hierarchy while recursing over it by
destroying windows from the expose event handler. We need to copy
the children list and ref all the children while recursing.
This fixes some crashers in gedit (bug #589367, bug #591434)
Alexander Larsson [Thu, 13 Aug 2009 14:48:07 +0000 (16:48 +0200)]
Fix leaks of clip region and outstanding moves
We're never freeing these, do so when destroying.
Fixes bug 589877
Matthias Clasen [Thu, 13 Aug 2009 13:45:04 +0000 (09:45 -0400)]
Don't return uninitialized pointers
This was giving me segfaults somewhere else.
Alexander Larsson [Thu, 13 Aug 2009 12:25:35 +0000 (14:25 +0200)]
Ensure that queue_translation is paired with the right X operation
The X11 queue_translation operation uses NextRequest to get the serial
of the XCopyArea operation where the translation should end. However,
if the gc passed to gdk_draw_drawable has a non-flushed clip region
(which it commonly has now for the window clipping) then the next
operation will be the GC flush, not the XCopyArea.
To handle this right we now pass in the GC to be used to
queue_translation and ensure that it is flushed before calling
NextRequest().
Alexander Larsson [Thu, 13 Aug 2009 11:35:58 +0000 (13:35 +0200)]
Clarify comment
Alexander Larsson [Thu, 13 Aug 2009 11:32:17 +0000 (13:32 +0200)]
Invalidate old source in gdk_window_move_region
When we copy the region we need to also re-expose the areas of
the copied region that was not also in the destination.
And, we need to do this invalidation after the move, as the
move also moves any invalid area.
Alexander Larsson [Thu, 13 Aug 2009 11:13:47 +0000 (13:13 +0200)]
Modify window system exposes wrt outstanding moves
If there are outstanding moves in an area that intersects
the source of an outstanding move we need to move the invalid
area correspondingly, otherwise we will expose the wrong area
as the outstanding move copy will happen before we expose
the invalid area.
Alexander Larsson [Thu, 13 Aug 2009 11:07:13 +0000 (13:07 +0200)]
Check for GraphicsExpose too in expose_serial_predicate
GraphicsExpose cause invalidation too, so we need to look for such
events in addition to normal Expose events.
Alexander Larsson [Thu, 13 Aug 2009 11:04:28 +0000 (13:04 +0200)]
Don't un-invalidate area that will be immediately invalidated again.
When moving an area we move any invalid region in this area to the
new place, but there really is no need to remove the old invalid
area as it would just be invalidated again (being newly exposed).
Alexander Larsson [Thu, 13 Aug 2009 10:54:31 +0000 (12:54 +0200)]
Remove C++ comment
Alexander Shopov [Thu, 13 Aug 2009 09:05:10 +0000 (12:05 +0300)]
Updated Bulgarian translation
Daniel Nylander [Thu, 13 Aug 2009 08:31:54 +0000 (10:31 +0200)]
Updated Swedish translation
Daniel Nylander [Thu, 13 Aug 2009 08:29:36 +0000 (10:29 +0200)]
Updated Swedish translation
Daniel Nylander [Thu, 13 Aug 2009 08:08:20 +0000 (10:08 +0200)]
Updated Swedish translation
Alexander Shopov [Thu, 13 Aug 2009 04:33:11 +0000 (07:33 +0300)]
Updated Bulgarian translation
Alexander Shopov [Thu, 13 Aug 2009 04:15:50 +0000 (07:15 +0300)]
Updated Bulgarian translation
Leonardo Ferreira Fontenelle [Thu, 13 Aug 2009 02:02:15 +0000 (23:02 -0300)]
Updated Brazilian Portuguese translation.
Benjamin Otte [Thu, 6 Aug 2009 14:25:20 +0000 (16:25 +0200)]
Bug 590959 - Set child_has_focus flag properly (second try)
Previously, this flag wasn't cleared properly when the notebook lost
focus, but only when the notebook was focussed again later.
As this flag is only used to advance correctly focus pages by grabbing
focus to the new page after switching the page, this is not good.
In particular, it can cause a focus grab when programmatically switching
the notebook page and the focus is inside a completely different widget.
A previous attempt at this fix in
6e0af6c25225440263792a3cbecd8f4301e3def5 has been reverted in
dfe0c8c0ca4823c77fa71b0048f6454958170b4e because it didn't work
correctly.
Matthias Clasen [Tue, 11 Aug 2009 19:07:15 +0000 (15:07 -0400)]
Bump version
Matthias Clasen [Tue, 11 Aug 2009 19:06:02 +0000 (15:06 -0400)]
2.17.7
Matthias Clasen [Tue, 11 Aug 2009 18:19:35 +0000 (14:19 -0400)]
Make setting the root cursor work again
This used to work, and CSW broke it. Bug 591462, 589844.
Matthias Clasen [Tue, 11 Aug 2009 18:18:13 +0000 (14:18 -0400)]
Fix make check
Matthias Clasen [Tue, 11 Aug 2009 16:47:09 +0000 (12:47 -0400)]
Updates
Alexander Larsson [Tue, 11 Aug 2009 13:41:23 +0000 (15:41 +0200)]
Fix clearing of window background for some transparent notification icons
This extends the usage of the native clear region call such that its
called also for windows that have parent relative background all the
way up to a native window. That way we get true background relative
background clearing even to a foreign parent, which means that some
transparent notification icons look right again.
Alexander Larsson [Tue, 11 Aug 2009 10:58:48 +0000 (12:58 +0200)]
Implement fallback for old draw_drawable vfunc
GdkDrawable->draw_drawback was replaced with a new vfunc
draw_drawback_with_src that is now called from gdk_draw_drawable.
However, some code seems to call the vfunc directly (see bug #591288),
so make it chain to the new call.
Note that such direct vfunc calls are a bad idea and won't work for all
cases.
Alexander Larsson [Tue, 11 Aug 2009 09:30:55 +0000 (11:30 +0200)]
Show/Hide native window when updating viewable
This moves the native show/hide calls to the generic code
for calculating viewable rather than in its own separate code
called from gdk_window_show/hide. This simplifies the code a bit,
but most significantly it means things are correctly shown when
they become viewable for other reasons than a show/hide call.
For instance, this fixes bug 590442 (gvim embedding) where the
toplevel GtkPlug is mapped by the embedder and we didn't previously
pick up that the native children became viewable and should be shown.
Marek Kasik [Tue, 11 Aug 2009 07:24:18 +0000 (09:24 +0200)]
Print when Enter pressed in certain GtkEntries of the print dialog
Print when Enter pressed in Name entry or Command Line entry in the
print dialog (#564695).
Add gtk_printer_option_set_activates_default() function and
gtk_printer_option_get_activates_default() function to control
behaviour of GtkPrinterOptionWidget.
Ivar Smolin [Tue, 11 Aug 2009 06:29:08 +0000 (09:29 +0300)]
Updating Estonian translation
Inaki Larranaga Murgoitio [Mon, 10 Aug 2009 17:59:25 +0000 (19:59 +0200)]
Updated Basque language
Antón Méixome [Mon, 10 Aug 2009 15:19:30 +0000 (17:19 +0200)]
Updated Galician translation
Inaki Larranaga Murgoitio [Mon, 10 Aug 2009 16:50:51 +0000 (18:50 +0200)]
Updated Basque language